package pers.liyan.shi.springboot.task.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import pers.liyan.shi.springboot.task.service.AsyncService;

@RestController
public class AsyncController {

    @Autowired
    private AsyncService service;

    @GetMapping("/process")
    public String process(){
        service.process();
        return "Process Success";
    }

}
